<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Is pro spravu zapasu</title>
        <link href="<c:url value="/resources/css/all.css" />" type="text/css" rel="stylesheet" />
    <sitemesh:write property='head' /> 
</head>

<div id="layout-header-wrapper" class="user">
    <div id="layout-header">
        <div id="menu">
            <ul>
                <li class="menu"><a href="<c:url value="/admin/season/season.jsp" />">Seasons</a></li>			
            </ul>
        </div>
    </div>
</div>

<div id="layout-body">
    <h1>
        <sitemesh:write property='title' />
    </h1>

    <c:if test="${not empty error}">
        <div class="errorblock">
            <fmt:message key="${error}" />
        </div>
        <%
            synchronized (session) {
                session.removeAttribute("error");
            }
        %>
    </c:if>

    <c:if test="${not empty message}">
        <div class="messageblock">
            <fmt:message key="${message}" />
        </div>
        <%
            synchronized (session) {
                session.removeAttribute("message");
            }
        %>
    </c:if>

    <sitemesh:write property='body' />
</div>
</html>